<?php 
/*
# ------------------------------------------------------------------------
# JA Halite - Version 1.0 - Licence Owner JA180572
# ------------------------------------------------------------------------
# Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites:  http://www.joomlart.com -  http://www.joomlancers.com
# This file may not be redistributed in whole or significant part.
# ------------------------------------------------------------------------
*/ 
// no direct access
defined('_JEXEC') or die('Restricted access');	
?>
<div id="ja_twitter_div" class="content">
	<?php if($showtextheading == "1"){ ?>
		<h4 class="twitter-title"><?php echo $headingtext;?></h4>
	<?php } ?>
	<?php if( $displayitem && $twitters != false )  { ?>
		<ul id="twitter_update_list">
		<?php foreach( $twitters as $item ) { ?>
			<li><span><?php echo modJaTwitterHelper::convert( preg_replace( "(^".$taccount.":)" , '',$item->get_description()) );?></span>&nbsp;&nbsp;<a href="<?php echo $item->get_link();?>"><?php echo round( (strtotime( date('D, j M Y') ) - strtotime( $item->get_date('D, j M Y') )) /(24*60*60), 0);?> <?php echo JText::_('days ago')?></a></li>
		<?php } ?>
		</ul>
	<?php } ?>
	<?php if ( $showfollowlink == "1" ){ ?>
		<center>
		<img alt="twitter" src="<?php echo JURI::base();?>modules/mod_jatwitter/assets/images/twitter-16x16.png"/>
		<a href="http://twitter.com/<?php echo $taccount;?>/" target="_blank" title="<?php echo JTEXT::_('FOLLOW');?> <?php echo $taccount; ?> <?php echo JTEXT::_('ON TWITTER');?>">
			<span><?php echo JTEXT::_('FOLLOW');?> <?php echo $taccount; ?> <?php echo JTEXT::_('ON TWITTER');?></span>
		</a>
		</center>
	<?php } elseif ( $showfollowlink == "2" ) { ?>
		<center>
		<a target="_blank" href="http://twitter.com/<?php echo $taccount;?>/" title="<?php echo JTEXT::_('FOLLOW');?> <?php echo $taccount; ?> <?php echo JTEXT::_('ON TWITTER');?>">
				<img src="http://static.twitter.com/images/twitter_bubble_logo.gif" class="nostyle" align="right" alt="<?php echo JTEXT::_('FOLLOW');?> <?php echo $taccount; ?> <?php echo JTEXT::_('ON TWITTER');?>" />
		</a>
		</center>
	 <?php } ?>
</div>
